import java.sql.Connection;
import java.sql.DriverManager;
import java.sql.PreparedStatement;

public class Test {

    public static void main(String[] args) {
//        test1();
    }

    public static void test1() {
        for (int i = 1; i <= 370; i++) {
            System.out.println("[XmlElement(\"ITEM"+i+"\")]");
            System.out.println("public string DVName"+i+" { get; set; }");
        }
    }

    public static void test2() throws Exception {
        Long begin = System.currentTimeMillis();
        Connection connection = DriverManager.getConnection(
                "jdbc:oracle:thin:@localhost:1521:orcl", "shplaterpt", "shplaterpt");
        PreparedStatement preparedStatement = connection
                .prepareStatement("insert into tb_test(id,name,value) values(?,?,?)");
        for (int i = 1; i <= 1000; i++) {
            for (int j = 1; j <= 100; j++) {
                preparedStatement.setInt(1, j);
                preparedStatement.setString(2, "name" + i);
                preparedStatement.setString(3, "value" + i);
                preparedStatement.addBatch();
            }
        }
        preparedStatement.executeBatch();
        preparedStatement.close();
        connection.close();
        Long end = System.currentTimeMillis();
        System.out.println("Time:" + (end - begin) / 1000 + " s");
        System.out.println("success");
    }
}